package com.cbg.es.entity;

import com.shuyuwl.core.domain.AbstractBaseDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 列名备份表
 *
 * @author wangjuzheng
 * @since 2019-10-16
 */
@Data
@Entity
@Table(name = "es_col")
@EqualsAndHashCode(callSuper = true)
public class EsCol extends AbstractBaseDomain implements Serializable {

	/**
	 * 列名
	 */
	@Column(name = "name")
	private String name;

	/**
	 * 列注释
	 */
	@Column(name = "name_cn")
	private String nameCn;

	/**
	 * 表名
	 */
	@Column(name = "table_name")
	private String tableName;

	/**
	 * 列显示名
	 */
	@Column(name = "col_name_alias")
	private String colNameAlias;

	/**
	 * 排序
	 */
	@Column(name = "sort")
	private Integer sort;
}
